home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / INFO / PCCDEMO.ZIP / COMP1.EXE / ABV640K.PRS < prev    next >
Text File  |  1993-12-20  |  5KB  |  76 lines

  1.   ╧╧╧╧╧╧╧╧╧╧╧╧╧╧╧╧╧╧╧ ÅæÄåæÇîîêìå: BEYOND 640K ╧╧╧╧╧╧╧╧╧╧╧╧╧╧╧ ╬╠╬╠╧╧╬╠╬╠╬╠╡
  2.                                    
  3.                                    │  ¢.  ö≥Σ ùîÆ ε± äîÆ ∞Σ∞ε±√. XMS is
  4.  ▄                     ▄           │  preferable  in  most  cases,  but
  5.  █▄▄ ▄▄▄ ▄ ▄ ▄▄▄ ▄▄▄ ▄▄█           │  some machines  won't  provide it.
  6.  █ █ █▄█ █ █ █ █ █ █ █ █           │  There    are    some    libraries
  7.  █▄█ █▄▄ █▄█ █▄█ █ █ █▄█           │  available at Simtel to access XMS
  8.          ▄▄█                       │  or EMS.  The disadvantage is that
  9.               ▄                    │  you don't allocate  the memory as
  10.   ▄▄▄ ▄   ▄▄▄ █ ▄                  │  you would with malloc() (or `new'
  11.   █▄▄ █ ▄ █ █ █▄▀                  │  in  C++).    I  believe  it  also
  12.   █▄█ █▄█ █▄█ █ █ ▄ ▄ ▄            │  requires  that   you   lock  this
  13.         ▀                          │  memory when  in use.   This means
  14.                                    │  your code is not easily ported to
  15.     ü√  ëα∞≥τΦπ Çσ≥τα± αφπ         │  other   (and   future)  operating
  16.                  â⌠φΓαφ î⌠±πεΓτ    │  systems  and  that  your  code is
  17.                                    │  more convoluted than  it would be
  18.                                    │  under a "real" os.  The advantage
  19. çΣ±Σ   α±Σ    ≥ε∞Σ    ΦπΣα≥,   εφ  │  is that  the  library  works with
  20. ∩±εµ±α∞∞Φφµ ÷Φ≤τ αΓΓΣ≥≥ ≤ε ∞Σ∞ε±√  │  compilers since  Turbo  C  2.0 (I
  21. αßε⌡Σ á₧Üè.                        │  think) and that your program will
  22.                                    │  easily run on even 286s.
  23.  
  24. £.  Å±εµ±α∞  ⌠φπΣ± îÆ ûΦφπε÷≥. MS  │  course,  run   the  program  from
  25. Windows functions as a 16-bit DOS  │  Windows.
  26. Extender (see #3).  Borland/Turbo  │
  27. C++  3.x  includes  EasyWin  [and  │  ¥.   ö≥Σ α  ¢á-ßΦ≤ ε±  ¥£-ßΦ≤ âÄÆ
  28. Microsoft C/C++  7.0 has QuickWin  │  ä≈≤ΣφπΣ±. This  is definitely the
  29. --ed.] which  is  a  library that  │  best solution  from  the program-
  30. automatically  lets  you  compile  │  mer's   standpoint.    You   just
  31. your  current  code  using  C/C++  │  allocate as  much  memory  as you
  32. standard input  or <conio.h> into  │  need using malloc()  or 'new'.  A
  33. a MS Windows program so your code  │  16-bit Extender  still has 16-bit
  34. can immediately allocate many MBs  │  ints and restricts arrays to 64K,
  35. of memory  (Windows enhanced mode  │  but a 32-bit Extender has 32-bits
  36. even does  virtual memory).   The  │  ints (which  makes porting  a lot
  37. disadvantage is that like any 16-  │  of UNIX code easier) so there are
  38. bit Extender a single malloc() is  │  no 64K limits.  A 32-bit Extender
  39. restricted  to  64K  (unless  you  │  requires  a  32-bit  compiler and
  40. want to  mess with  huge pointers  │  the program will not run on 286s.
  41. in  Windows).    Also,  EasyWin's  │  Some  Extenders  also  do virtual
  42. screen  output  is  significantly  │  memory.      Using   an  Extender
  43. slower than  a DOS character-mode  │  doesn't   require   source   code
  44. program's   and   you   must,  of  │  changes and unlike option #1 your
  45.  
  46. code is portable and not obsolete  │
  47. in a few months. ÿε⌠± ε∩≤Φεφ≥ σε±  │      -   Get  a 32-bit compiler or
  48. ≤τΦ≥ ≥εδ⌠≤Φεφ α±Σ:                 │  one  that   comes   with   a  DOS
  49.                                    │  Extender.  Zortech comes with 16-
  50.     -   Buy    PharLap's   16-bit  │  bit and  a  32-bit  Extenders (no
  51. Extender  that  works  with  BC++  │  debugger for 32-bit programs, but
  52. 3.0+  and  MSC  (just  requires a  │  Flashtek sells one).  Watcom also
  53. relink).  Note,   the   BC++  3.1  │  makes a  C  32-bit  compiler. [If
  54. upgrade came with PharLap "lite".  │  anyone else has products or plans
  55. Pharlap's  32-bit  Extender works  │  to announce, please let us know.]
  56. with 32-bit   compilers.           │
  57.                                    │      -     Buy Borland Pascal 7.0.
  58.     -   Get    the   GNU   (free,  │  It includes a 16 bit royalty-free
  59. copylefted)   gcc   2.x  compiler  │  DOS  extender   using   the  same
  60. which DJ Delorie ported from UNIX  │  interface  as  MS  Windows.    It
  61. and   which   uses   his   32-bit  │  functions   under  a  DPMI server
  62. Extender.  It supports C and C++,  │  like   Windows   or   QDPMI  from
  63. but the  Extender  is  VCPI which  │  Quarterdeck,  and  also  provides
  64. means  neither  the  compiler nor  │  its  own  server  which  you  can
  65. programs it produces  will run in  │  distribute with your programs.
  66. a DOS session under Windows.       │
  67.  
  68. 4.   This  option  doesn't really  │
  69. count since  it's not  a solution  │
  70. in DOS, but √ε⌠ Γε⌠δπ ≥÷Φ≤Γτ ≤ε α  │
  71. σ⌠δδ   ¥£-ßΦ≤   ε∩Σ±α≤Φφµ  ≥√≥≤Σ∞  │
  72. like OS/2 2.0 or UNIX (or NT when  │
  73. it comes  out).   I believe Win32  │
  74. will allow  you  to  write 32-bit  │
  75. Windows programs ñ                 │
  76.